#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

#define MAX 1024

typedef struct File
{
	int fd;
	int flag;
	int mod;
	char buffer[1024];
	int bufferlen;
}MyFILE;

MyFILE* MyFopen(const char* path , const char* mod);

void MyFflush(MyFILE* pf);

void MyWrite(MyFILE* pf,const char* str);

//const char* MyRead();

void MyClose(MyFILE* pf);
